package com.jspgou.cms.manager;

import java.util.List;

import com.jspgou.cms.entity.Promote;
import com.jspgou.cms.entity.Store;
import com.jspgou.common.page.Pagination;
import com.jspgou.core.entity.Website;

public interface PromoteMng {
	public Pagination getPage(int pageNo, int pageSize);
	
	public Pagination getPage(Long websiteId,Long storeId,Boolean disable,Boolean deleted,int pageNo, int pageSize);
	
	public List<Promote> getList(Long websiteId,Long storeId,Boolean disable,Boolean deleted);
 
	public Promote findById(Long id);

	public Promote save(Promote bean);
	
	public Promote save(Promote bean,Website web,Store store);

	public Promote update(Promote bean);

	public Promote deleteById(Long id);
	
	public Promote[] deleteByIds(Long[] ids);
	
	public boolean checkingProduct(Long id);
	
}